#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>

void replaceSpace(char* str) {
    int spaceCount = 0;
    int originalLength = strlen(str);

    for (int i = 0; i < originalLength; i++) {
        if (str[i] == ' ') {
            spaceCount++;
        }
    }

    int newLength = originalLength + spaceCount * 2;
    str[newLength] = '\0';

    for (int i = originalLength - 1; i >= 0; i--) {
        if (str[i] == ' ') {
            str[newLength - 1] = '0';
            str[newLength - 2] = '2';
            str[newLength - 3] = '%';
            newLength -= 3;
        }
        else {
            str[newLength - 1] = str[i];
            newLength--;
        }
    }
}

int main() {
    char str[1000];
    gets(str);
    replaceSpace(str);
    printf("%s\n", str);
    return 0;
}